Carbon


PBHSetFInfoSync

Header: Files.h Carbon status: Supported

Sets information for a file.

OSErr PBHSetFInfoSync (
    HParmBlkPtr paramBlock
);
Parameter descriptions
paramBlock

A pointer to a basic HFS parameter block.

function result

A result code.

DISCUSSION

The relevant fields of the parameter block are:

The PBHSetFInfoSync function sets information (including the date and time of creation and modification, and information needed by the Finder) about the file having the name pointed to by ioNamePtr on the volume specified by ioVRefNum. You should call PBHGetFInfoSync just before PBHSetFInfoSync, so that the current information is present in the parameter block.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)